<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head><title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="__ROOT__/Public/Css/ehs.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="__ROOT__/Public/Css/photo.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="__TMPL__/style/style.css" rel="stylesheet" type="text/css" media="screen" />
    <script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
  </head>

  <body>
    <div id="container">
      <layout name="Public:header" cache="0" />
      <div id="breakcrump">你所在位置： <a href="/index.html" title=""> 首页 </a> > 标准 </div>
      <div id="mainbody">
        <div id="cont-g" class="left">
          <div class="profile" id="download">
            <div class="profile-title"><h2>{$bz.title}</h2></div>
            <div class="profile-cont">
              <ul>
                <li><strong>资料类型:</strong> <span>{$bz.type_name}</span></li>
                <li><strong>资料大小:</strong> <span>{$bz.file_size}</span></li>
                <li><strong>资料语言:</strong> <span>{$bz.file_language}</span></li>
                <li><strong>文档格式:</strong> <span>{$bz.postfix}</span></li>
                <li><strong>下载权限:</strong> <span>无需注册免费下载</span></li>
                <li><strong>资料等级:</strong> <span><img src="http://www.bzfxw.com/skin/default/{$bz.file_level}star.gif"/></span></li>
                <li><strong>更新时间:</strong> <span>{$bz.add_time}</span></li>
                <li><input type="button" class="can" onclick="clickDownLoad('{$bz.id}')" value="我要下载"/></li>
              </ul>
            </div>
          </div>
          <div class="profile mt10" id="download">
            <div class="profile-title"><h2>资料介绍</h2></div>
            <div class="profile-cont">
              <p>{$bz.introduce}</p>
            </div>
          </div>
        </div>

        <div id="side-g" class="left ml10 profile-side">
          <div class="mode-side-g">
            <div class="mode-side-g-title"><h2><a href="#" title="">下载分类</a></h2></div>
            <div class="mode-side-g-cont">
              <ul class="in-line">
                <volist name="type_list" id="tl">
                <li><a href="__URL__/bzList/type_id/{$tl.type_id}" title="">{$tl.type_name}({$tl.num})</a></li>
                </volist>
              </ul>
            </div>
          </div>

          <div class="mode-side-g">
            <div class="mode-side-g-title"><h2><a href="#" title="">最新标准</a></h2></div>
            <div class="mode-side-g-cont">
              <ul>
                <volist name="new_bz" id="nb">
                <li><a href="__URL__/index/id/{$nb.id}" title="">{$nb.title}</a></li>
                </volist>
              </ul>
            </div>
          </div>

          <div class="mode-side-g">
            <div class="mode-side-g-title"><h2><a href="#" title="">最新资料</a></h2></div>
            <div class="mode-side-g-cont">
              <ul>
                <volist name="new_doc" id="nd">
                <li><a href="http://www.ehs.cn/doc-detail.php?id={$nd.id}" title="">{$nd.title}</a></li>
                </volist>
              </ul>
            </div>
          </div>
        </div>

      </div>
      <layout name="Public:footer" cache="0" />
    </div>
    <script>
      var url = "__URL__";
      function clickDownLoad(id){
        var data = {id:id};
        ajax.send(url+"/downLoad",data,function(obj){
          if (obj.status == 1) {
            window.location.href = "http://www.ehs.cn/"+obj.data;
          }else if (obj.status == 2){
            window.location.href = obj.data;
          }else {
            alert(obj.info);
            window.location.href = "http://www.ehs.cn/";
          }
        });
      }
    </script>
  </body>
</html>
